package br.edu.fapi.gestao.pg.mapeador;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import br.edu.fapi.gestao.pg.dominio.Convenio;

public class MapeadorConvenio implements RowMapper<Convenio>{

	public Convenio mapRow(ResultSet rs, int rowNum)
			throws SQLException {
		Convenio convenio = new Convenio();
		convenio.setId(rs.getInt("id"));
		convenio.setNome(rs.getString("nome"));
		convenio.setUf(rs.getString("uf"));
		return convenio;
	}

}
